package com.e3.web.widget.client;

import com.extjs.gxt.ui.client.widget.form.CheckBox;

public class MyCheckBox extends CheckBox implements MyField<Boolean>{
	
	private boolean isHide = false;

	public Boolean getFieldValue() {
		return this.getValue();
	}

	public void setFieldValue(Object value) {
		Boolean bValue = value==null?false:(Boolean)value;
		this.setValue(bValue);
	}

	@Override
	public void hide() {
		isHide = true;
		super.hide();
	}

	public boolean isHide() {
		return isHide;
	}
}
